import pymongo
import json
from bson import Binary, Code,json_util
import matplotlib as plot


def generate_zhifang(value):
    
    pass


if __name__ == '__main__':
    myclient = pymongo.MongoClient("mongodb://localhost:27017/")
    mydb = myclient["scrapy"]
    myc1 = mydb["collections2"]
    data = myc1.find_one({"_id":1})
    print(type(data))
    value = data["value"]
    print(value)